/*******************************************************************************
 * Package: com.practice.ex
 * Type:    ServiceException
 * Date:    2023/9/26 13:36
 *
 * Copyright (c) 2023 HUANENG GUICHENG TRUST CORP.,LTD All Rights Reserved.
 *
 * You may not use this file except in compliance with the License.
 *******************************************************************************/
package com.practice.ex;

/**
 * TODO your comment
 *
 * @author Masiyu
 * @date 2023/9/26 13:36
 */
public class ServiceException extends RuntimeException{
    private ServiceErrorCode errorCode;
    public ServiceException(ServiceErrorCode errorCode,String message){
        super(message);
        this.errorCode=errorCode;
    }
    
    public ServiceErrorCode getErrorCode() {
        return errorCode;
    }
}
